package bookExercise;

import java.util.List;
import java.util.stream.Stream;

public class A14noneMatch {
    public static void main(String[] args) {
        List<A14Emplyee> list =A14Emplyee.getEmpList();
        Stream<A14Emplyee> stream =list.stream();
        boolean b = stream.noneMatch(n -> n.getSalary() < 2000);
        System.out.println("是否不存在薪资小于2000的员工？"+b);
    }
}
